$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;

.home {
  position: relative;
  width: 100%;
  .main{
    width: 85vw;
    margin: 8vw auto;
    .links{
      display: flex;
      align-items: center;
      a{
        color: #333;
        font-size: $fontSize_14;
        text-decoration: underline;
      }
      span{
        margin: 0 10px;
      }
    }
    .section{
      width: 100%;
      display: flex;
      justify-content: space-between;
      gap:6vw;
      margin:2vw 0;
      .l{
        width: 75%;
        .list{
          a{
            display: block;
            margin-bottom: 2vw;
            .t{
              color: #000;
              font-size: $fontSize_32;
              font-weight: 700;
            }
            .des{
              color: #666;
              font-size: $fontSize_14;
              margin: 10px 0;
            }
            .pic{
              overflow: hidden;
              img{
                width: 100%;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
            }
          }
        }
        .pager{
          display: flex;
          align-items: center;
          justify-content: center;
          a{
            font-size: $fontSize_22;
            color:rgba(139,139,139,1);
            display: inline-block;
            padding: 0 10px;
            border-bottom: 2px solid transparent;
            transition: all 600ms;
            svg{
              display: block;
            }
            margin: 0 5px;
            &:hover{
              color: #E60012;
              border-color: #E60012;
            }
          }
          .active{
            color: #E60012;
            border-color: #E60012;
          }
        }
      }
      .r{
        width: 30.2%;
        .t{
          color: #000;
          font-size: $fontSize_32;
        }
        .list{
          a{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 2vw;
            .pic{
              width: 45%;
              overflow: hidden;
              img{
                width: 100%;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }
            .text{
              width: 50%;
              .st{
                color: #000;
                font-size: $fontSize_18;
                font-weight: 700;
              }
              .des{
                color: #999;
                font-size: 0.75vw;
                word-break: break-all;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
                overflow: hidden;
                margin: 10px 0;
              }
              .time{
                font-size: 0.65vw;
                color: #666;
              }
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
            }
          }
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    .main{
      width: 90%;
      margin: 60px auto;
      .links{
        a{
          font-size: 14px;
        }
      }
      .section{
        flex-direction: column;
        gap: 0;
        .l{
          width: 100%;
          .list{
            a{
              margin: 15px 0 0 0;
              .t{
                font-size: 16px;
              }
              .des{
                font-size: 14px;
              }
            }
          }
          .pager{
            margin-top: 20px;
            a{
              font-size: 14px;
            }
          }
        }
        .r{
          width: 100%;
          margin-top: 30px;
          .t{
            font-size: 20px;
          }
          .list{
            a{
              margin-top: 15px;
              .text{
                .st{
                  font-size: 14px;
                }
                .des{
                  font-size: 12px;
                }
                .time{
                  font-size: 12px;
                }
              }
            }
          }
        }
      }
    }
  }
}